import request from '@/utils/request'

export function page(data) {
  return request({
    url: '/docu/page',
    method: 'post',
    data
  })
}

export function update(data) {
  return request({
    url: '/docu',
    method: 'put',
    data
  })
}

export function add(fileForm) {
  return request({
    url: '/docu',
    method: 'post',
    data: fileForm
  })
}

export function deleteById(id) {
  return request({
    url: '/docu/delete',
    method: 'post',
    data: { id }
  })
}

export function query_docu(id) {
  return request({
    url: '/docu/' + id,
    method: 'get'
  })
}
